package 工厂方法模式;

import 简单的工厂模式.工厂模式demo.计算器.Operation;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author zyl
 * @Description
 * @since 2023/12/26 9:48
 */

public class Client {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        System.out.println("请输入数字A");
//        Double numberA = Double.valueOf(sc.nextLine());
//        System.out.println("请输入运算符(+,-,*,/):");
//        String operator = sc.nextLine();
//        System.out.println("请输入数字B");
//        Double numberB = Double.valueOf(sc.nextLine());
//        Double result = null;
//
//        Operation operation = new OperationFactory().creatOperation(operator);
//        result = operation.getResult(numberA,numberB);
//        System.out.println("结果是:" + result);
        List<String> a = new ArrayList<>();

        List<String> ab = new ArrayList<>();
        ab.add("55");
        ab.add("66");
        a.addAll(ab);
        add(a);
        System.out.println(a);
    }

    private static void add(List<String> a){
        a.add("777");
    }
}
